package com.eqxiu.ieditor.api.controller.scene.doc;

import com.eqxiu.ieditor.commons.web.ResultData;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

@Api(description = "标签规格接口")
public interface TagDoc {

	@ApiOperation(value = "根据bizType查询标签信息，用于打标签，1代表样例标签，2代表样例页标签，3代表组件标签")
	public ResultData getTagList(@ApiParam int bizType);

	@ApiOperation(value = "给样例打标签")
	public ResultData setSceneTag(@ApiParam Integer tagId, @ApiParam Long sceneId);

	@ApiOperation(value = "删除样例标签")
	public ResultData unsetSceneTag(@ApiParam Integer tagId, @ApiParam Long sceneId);

	@ApiOperation(value = "给样例页打标签")
	public ResultData setPageTag(@ApiParam Integer tagId, @ApiParam Long sceneId, @ApiParam Long pageId);

	@ApiOperation(value = "获取具有相同规格的页面列表", responseContainer = "List")
	public ResultData getPageByTag(@ApiParam Integer tagId);

	@ApiOperation(value = "获取具有相同规格的场景列表", responseContainer = "List")
	public ResultData getSceneByTag(@ApiParam Integer tagId);

	@ApiOperation(value = "给样例组件打标签")
	public ResultData setElementTag(@ApiParam Integer tagId, @ApiParam Long pageId, @ApiParam Long elementId);

	@ApiOperation(value = "删除样例组件标签")
	public ResultData unsetElementTag(@ApiParam Integer tagId, @ApiParam Long pageId, @ApiParam Long elementId);

	@ApiOperation(value = "删除样例页标签")
	public ResultData unsetPageTag(@ApiParam Integer tagId, @ApiParam Long pageId);

	@ApiOperation(value = "获取样例标签对应的页标签(规格)")
	public ResultData getPageTagListBySceneTagId(@ApiParam Integer tagId);

	@ApiOperation(value = "通过页Id获取页规格,如果不存在,返回fail")
	public ResultData getPageTagByPageId(Long pageId);
}
